﻿using Might.Infrastructure.ModelicaDOM.Expressions;
using  Might.Infrastructure.DOM;

namespace Might.Infrastructure.ModelicaDOM.Equations
{
    /// <summary>
    /// Interface for elsewhen equation sections of Modelica "when equations"
    /// </summary>
    [ContainedChild(GroupNames.ModelicaThenEquations, typeof(IEquation))]
    public interface IElseWhenEquation : IEquation {
        /// <summary>
        /// Condition of the if equation
        /// </summary>
        Expression Condition { get; set; }
    }

    /// <summary>
    /// Interface for Modelica "when equations"
    /// </summary>
    [ContainedChild(GroupNames.ModelicaThenEquations,typeof(IEquation))]
    [ContainedChild(GroupNames.ModelicaElseWhenEquations, typeof(IEquation))]
    public interface IWhenEquation {        
        Expression Condition { get; set; }
    }
}
